﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Shumisen.Core.UnitTest
{
	[TestClass]
	public class GuardTest
	{
		[TestMethod]
		public void TestArgumentNotNull()
		{
			Guard.ArgumentNotNull(new object(), "aaa");
		}

		[TestMethod]
		public void TestArgumentNotNull_Exception()
		{
			try
			{
				Guard.ArgumentNotNull(null, "aaa");
				Assert.Fail();
			}
			catch (ArgumentNullException ex)
			{
				Assert.AreEqual("aaa", ex.ParamName);
			}
		}

	
	}
}